using System;
using Churchtoolkit.Utils.Authentication;
using Churchtoolkit.Utils.MVP;
using Churchtoolkit.Web.Shell.Views;
using Churchtoolkit.DataAccess.Repositories;
using Churchtoolkit.DataAccess.Entities;
using Churchtoolkit.DataAccess.Common;

namespace Churchtoolkit.Web.Shell.Presenters
{
    public class DefaultMasterPresenter : Presenter<IDefaultMasterView>
    {
        private readonly IAuthentication _autentication;
        public DefaultMasterPresenter(IAuthentication autentication)
        {
            _autentication = autentication;
        }

       

        public string GetDisplayName()
        {
            return this._autentication.CurrentLogedInMember.DisplayName;
        }
    }
}